package com.geek.factory.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.geek.factory.entity.MaterialSupplier;
import com.geek.factory.mapper.MaterialSupplierMapper;
import com.geek.factory.service.MaterialSupplierService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 原料供应商关联表 服务实现类
 * </p>
 *
 * @author author
 * @since 2025-06-23
 */
@Service
public class MaterialSupplierServiceImpl extends ServiceImpl<MaterialSupplierMapper, MaterialSupplier> implements MaterialSupplierService {

    @Override
    public List<MaterialSupplier> getBySupplierId(Integer supplierId) {
        // 这里假设你的表字段是 supplier_id
        return this.lambdaQuery().eq(MaterialSupplier::getSupplierId, supplierId).list();
    }
}
